/*
 * CcDataSection.c
 *
 *  Created on: 2012/07/03
 *      Author: guanxiaoying
 */
#include "../coredef.h"
#include "cc.h"

static AST currDataSection = 0;

AST CcGetCurrDataSection( VOID ){
	return currDataSection;

}

VOID CcSetCurrDataSection( PSZ name ){
	AST astDS;

	stDataSectionAccess.alloc(1);
	astDS = stDataSectionAccess.getMax();
	stDataSectionAccess.name.set( astDS, name );
	currDataSection = astDS;
}
